package cn.fzm.demo02;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Dremeue
 * @create 2019/9/26 12:48
 **/
public class TestAnno2 {
    @Test
    public void testUserAdd() {
    }

    @Test
    public void testBookService() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");
        BookService bookService = (BookService) context.getBean("bookService");
        bookService.add();
    }
}
